home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
DINKDEMO
/
DC_SCRIB
/
DSCRIBBL.C2
< prev
next >
Wrap
Text File
|
1992-07-23
|
939b
|
46 lines
/*
File: DScribbleApp.c
Written by: Mark Gross
Copyright: ⌐ 1992 by Applied Technical Software, all rights reserved.
Use at your own risk.
*/
//This is the class deffinition of the DScribbleApplication
#include "DScribbleApp.h"
#include "DScribbleDoc.h"
DDocument* DScribbleApp :: MakeDDoc(Boolean OpenFromFile)
{
DScribbleDoc *New;
New = new DScribbleDoc;
// if OpenFromFile == FALSE then it will
// not read from any file
if(New->Init(OpenFromFile))
{
if ( fTarget = New->MakeWindow(FALSE) )
((DWindow *) fTarget)->SetWindowTitle();// everything went ok, so set the title
// I'm having the App tell
// the doc to make the window because I don't
// like haveing one init function do too much stuff.
// Its a reliability thing. BTW FALSE is for no collorQD
else
fTarget = New; // window not created
}
else
{
fTarget = this;
SelectWindow( FrontWindow());
}
return New;
}